-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebProfiler debugging integration #175
base: 8.x-3.x
Are you sure you want to change the base?
Conversation
@@ -3,3 +3,5 @@ type: module | |||
description: 'React on events and conditionally evaluate actions.' | |||
package: Rules | |||
core: 8.x | |||
test_dependency: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, this one is called test_dependencies :)
/** | ||
* Defines a service profiler for the web profiler module. | ||
*/ | ||
class WebProfilerServiceProvider extends ServiceProviderBase { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has to be called RulesServiceProvider and must be placed into the Drupal\rules namespace to let Drupal find it
Please call the namespace WebProfiler (camel case) as well and also the files themselves! |
public function getErrorLogsCount() { | ||
$amount = 0; | ||
array_walk($this->data['logs'], function ($log) use (&$amount) { | ||
if (in_array($log['level'], array('error', 'critical', 'alert', 'emergency'))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PSR3 constants please.
/** | ||
* Tests that the webprofile shows rules debug log and respects rules settings. | ||
* | ||
* @group block |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah... No :P
Merged back head into the webprofiler branch here: |
Right now it depends on #170